#include "GridSingleton.hpp"

GridSingleton::GridSingleton()
{

}

GridSingleton* GridSingleton::getInstance()
{
	//lasy singleton double locked
	//if (_instance == NULL)
	//{
	//	boost::mutex::scoped_lock socped_l(_mtx);
	//	if (_instance == NULL)
	//	{
	//		_instance = new GridSingleton();
	//	}
	//}
	//return _instance;

	static GridSingleton singleton;
	return &singleton;
}


Clouds_Map& GridSingleton::getCloudsMap()
{
	return clouds_map;
}
MStreet_Map& GridSingleton::getMStreetMap()
{
	return mstreet_map;
}

CustomerPic_Map& GridSingleton::getCustomerMap()
{
	return customer_map;
}
MarkPic_Map& GridSingleton::getMarkMap()
{
	return markpic_map;
}